package com.powernode.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @create: 2024/7/15
 * @author: gyhe10
 * @description: 请求白名单配置类
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "gateway.white")
@RefreshScope// 配置热更新
public class WhiteUrlsConfig {

    /**
     * 白名单url集合
     */
    private List<String> allowUrls;
}
